package com.demo.nfcdemo.v;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.demo.nfcdemo.R;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void onClick(View v) {
        switch (v.getId()) {
            //角色b
            case R.id.action_b:
                startActivity(new Intent(this, BActivity.class));
                break;

            //角色c
            case R.id.action_c:
                startActivity(new Intent(this, CActivity.class));
                break;
            default:
        }
    }
}
